From: Adel Gadllah Date: Fri, 27 Sep 2013 10:41:12 +0000 (+0200) Subject: overview: Ignore dragEnd while the animation is still in progress X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3322 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=80a3bb85aa4a66ed55b3d7465500e1c1f7cade6c;p=gnome-shell.git overview: Ignore dragEnd while the animation is still in progress Moving the mouse fast enough during xdnd will trigger a xdnd-leave event because the input shape is not updated until after the animation is done. So simply ignore the leave events while the animation is in progress. https://bugzilla.gnome.org/show_bug.cgi?id=708887 --- diff --git a/js/ui/overview.js b/js/ui/overview.js index 78dcf534f..2210dfed8 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -313,6 +313,9 @@ const Overview = new Lang.Class({ }, _onDragEnd: function(time) { + if (this.animationInProgress) + return; + this._inXdndDrag = false; // In case the drag was canceled while in the overview